package com.nts.bupna.model;

public class While implements Container<Activity>, Conditional, Activity {

    private Activity activity;
    private String condition;

    @Override
    public void add(final Activity child) {
        this.activity = child;
    }

    public Activity getActivity() {
        return activity;
    }

    @Override
    public String getCondition() {
        return condition;
    }

    @Override
    public void setCondition(final String condition) {
        this.condition = condition;
    }

    @Override
    public ActivityType getActivityType() {
        return ActivityType.WHILE;
    }
}
